<include file="Public:header"/>

<div class="table-tit"><a href="{:U('Sett/rules')}">规则列表</a>>>新增规则</div>
<div class="form-panel">
    <div class="row">
        <div class="col-md-8">
            <form action="{:U('Curd/editons','type=Platrule&str=plr_id&id='.$data['plr_id'])}" method="post">
                <div class="form-group">
                    <label>类型</label>
                    <select name="plr_type" class="form-control input-sm">
                        <volist name="type" id="v">
                            <option value="{$v.sat_para}" <if condition="$v['sat_para'] eq $data['plr_type']">selected</if>>
                            {$v.sat_name}-{$v.sat_para}
                            </option>
                        </volist>
                    </select>
                </div>
                <div class="form-group">
                    <label>标题</label>
                    <input type="text" name="plr_title" class="form-control input-sm" value="{$data.plr_title}"/>
                </div>
                <div class="form-group">
                    <label>内容</label>
                    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/umeditor/umeditor.config.js"></script>
                    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/umeditor/umeditor.min.js"></script>
                    <link href="__PUBLIC__/libs/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
                    <textarea class="form-control" name="plr_content" id='editor'>{$data.plr_content}</textarea>
                </div>
                <div class="form-group">
                    <label>排序</label>
                    <input type="text" name="plr_desc" class="form-control input-sm" value="{$data.plr_desc}"/>
                </div>
                <div class="form-group">
                    <label>状态</label>
                    <select name="plr_status" class="form-control input-sm">
                        <option value="1" <if condition="$data['plr_status'] eq 1">selected</if>>启用</option>
                        <option value="2" <if condition="$data['plr_status'] eq 2">selected</if>>暂停</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-default">更新</button>
            </form>

        </div>
    </div>
</div>
<script type="text/javascript">
    var serverPath = '__PUBLIC__/libs/umeditor/',
            um = UM.getEditor('editor');
</script>
<include file="Public:footer"/>